package org.example.service;

import org.example.annotations.OperationLog;
import org.example.entity.Users;
import org.springframework.stereotype.Service;

/**
 * @author shenguangyang
 */
@Service
public class UserService {

    @OperationLog(module = "Demo",operation = "find",businessId = "#id")
    public void test(String id) {
        System.out.println("ok");
    }

    @OperationLog(module = "Demo",operation = "update",businessId = "#users.id")
    public void update(Users users) {
        System.out.println("ok");
    }
}
